home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19981211-19990422
/
000133_news@watsun.cc.columbia.edu _Mon Jan 18 12:15:49 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@watsun.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA06497
for <kermit.misc@watsun.cc.columbia.edu>; Mon, 18 Jan 1999 12:15:48 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA10113
for kermit.misc@watsun.cc.columbia.edu; Mon, 18 Jan 1999 11:40:29 -0500 (EST)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: do11@calva.net (Dominique Ottello)
Subject: not the same string with echo as with write file
Date: Mon, 18 Jan 1999 16:43:37 GMT
Organization: PCatHome&Me
Message-ID: <36a35d8c.97279@news.calvacom.fr>
To: kermit.misc@mailrelay2.cc.columbia.edu
Hello from France,
I apologize for my wrong English, I hope you'll understand what I want.
MS-Kermit 3.15 under MS-DOS 6.2
With the under take file I want to have the same output string on screen
and in a file :
; ------------ Beginning of take file ----------------
def Avion A320
def Ename AKA10AAJ
def Filelog Essai.log
def Log_S Fichier
def SN ECDD3022
def \%h T1
def \%n 005
def \%p 1459M55
;
def print_PC open append \m(FileLog),-
write file {\v(Time) \%1\13\10},close write-file
;
; Warning : the next two lines are only one line (Word Wrap)
ass Affiche copy C:\\KERMIT\\FICHIERS\\\m(Ename).\%h
C:\\\m(Avion)\\\%p\\\m(SN)\\\v(ndate).\%n
;
echo {\m(Affiche)}
print_PC {\m(Affiche)}
; ------------ End of take file ----------------
The echo line does exactly what I want :
Warning : the next two lines are only one line (Word Wrap)
14:55:37 copy C:\KERMIT\FICHIERS\AKA10AAJ.T1
C:\A320\1459M55\ECDD3022\19990118.005
Unfortunately, the content of the file ESSAI.LOG is not the same as the
screen but :
Warning : the next two lines are only one line (Word Wrap)
14:55:37 copy C:\KERMIT\FICHIERS\AKA10AAJ.T1
C:\A320�9M55\ECDD3022�90118.005
Despite the fact that the value seen by "show macro Affiche" is right, it
seems that it is badly interpreted inside the macro "print_PC".
The "\\\%p" is not interpreted as one "\" plus the content of the macro \%p
but as a character "\145" plus characters following i.e. "9M55". There is
the same thing for "\\\v(ndate)" that is interpreted as character "\199"
plus characters following i.e. "90118" in place of string "\19990118".
Is there a bug or a misunderstanding ?
Is there a way to bypass this problem ?
Thank you for your attention.
--
== Dominique Ottello == do11@calva.net == Paris == France ==